package com.example.zhu.controller;

import com.example.zhu.service.Impl.WxPayService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;


@Slf4j
@RestController
@RequestMapping("/wx")
public class wxPayController {
    @Resource
    private WxPayService wxPayService;
    @PostMapping("/payRefund")
    private Map payRefund(HttpServletRequest request)  {
        return wxPayService.payRefund(request);
    }
}
